package com.github.shiqiyue.app.common.utils;

/***
 *
 * @author wenyao.wu
 * @since 2020/7/27
 */
public class StringUtil {

    /***
     * 隐藏银行卡号
     * @param cardNo
     * @return
     */
    public static String maskCard(String cardNo) {
        if (org.apache.commons.lang3.StringUtils.isBlank(cardNo)) {
            return org.apache.commons.lang3.StringUtils.EMPTY;
        }
        return "**** **** **** " + cardNo;
    }
}
